package com.tsll.entity;

import java.io.Serializable;

/**
 * 
 * @TableName ebook_chapter
 */
public class EbookChapter implements Serializable {
    /**
     * 
     */
    private Integer id;

    /**
     * 
     */
    private Integer ebookId;

    /**
     * 
     */
    private String ebookChaptert1;

    /**
     * 
     */
    private String ebookChaptert2;

    /**
     * 
     */
    private String ebookChaptert3;

    /**
     * 
     */
    private String ebookChaptert4;

    /**
     * 
     */
    private String ebookChaptert5;

    /**
     * 
     */
    private String ebookChaptert6;

    /**
     * 
     */
    private String ebookChaptert7;

    /**
     * 
     */
    private String ebookChaptert8;

    /**
     * 
     */
    private String ebookChaptert9;

    /**
     * 
     */
    private String ebookChaptert10;

    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Integer getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 
     */
    public Integer getEbookId() {
        return ebookId;
    }

    /**
     * 
     */
    public void setEbookId(Integer ebookId) {
        this.ebookId = ebookId;
    }

    /**
     * 
     */
    public String getEbookChaptert1() {
        return ebookChaptert1;
    }

    /**
     * 
     */
    public void setEbookChaptert1(String ebookChaptert1) {
        this.ebookChaptert1 = ebookChaptert1;
    }

    /**
     * 
     */
    public String getEbookChaptert2() {
        return ebookChaptert2;
    }

    /**
     * 
     */
    public void setEbookChaptert2(String ebookChaptert2) {
        this.ebookChaptert2 = ebookChaptert2;
    }

    /**
     * 
     */
    public String getEbookChaptert3() {
        return ebookChaptert3;
    }

    /**
     * 
     */
    public void setEbookChaptert3(String ebookChaptert3) {
        this.ebookChaptert3 = ebookChaptert3;
    }

    /**
     * 
     */
    public String getEbookChaptert4() {
        return ebookChaptert4;
    }

    /**
     * 
     */
    public void setEbookChaptert4(String ebookChaptert4) {
        this.ebookChaptert4 = ebookChaptert4;
    }

    /**
     * 
     */
    public String getEbookChaptert5() {
        return ebookChaptert5;
    }

    /**
     * 
     */
    public void setEbookChaptert5(String ebookChaptert5) {
        this.ebookChaptert5 = ebookChaptert5;
    }

    /**
     * 
     */
    public String getEbookChaptert6() {
        return ebookChaptert6;
    }

    /**
     * 
     */
    public void setEbookChaptert6(String ebookChaptert6) {
        this.ebookChaptert6 = ebookChaptert6;
    }

    /**
     * 
     */
    public String getEbookChaptert7() {
        return ebookChaptert7;
    }

    /**
     * 
     */
    public void setEbookChaptert7(String ebookChaptert7) {
        this.ebookChaptert7 = ebookChaptert7;
    }

    /**
     * 
     */
    public String getEbookChaptert8() {
        return ebookChaptert8;
    }

    /**
     * 
     */
    public void setEbookChaptert8(String ebookChaptert8) {
        this.ebookChaptert8 = ebookChaptert8;
    }

    /**
     * 
     */
    public String getEbookChaptert9() {
        return ebookChaptert9;
    }

    /**
     * 
     */
    public void setEbookChaptert9(String ebookChaptert9) {
        this.ebookChaptert9 = ebookChaptert9;
    }

    /**
     * 
     */
    public String getEbookChaptert10() {
        return ebookChaptert10;
    }

    /**
     * 
     */
    public void setEbookChaptert10(String ebookChaptert10) {
        this.ebookChaptert10 = ebookChaptert10;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        EbookChapter other = (EbookChapter) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getEbookId() == null ? other.getEbookId() == null : this.getEbookId().equals(other.getEbookId()))
            && (this.getEbookChaptert1() == null ? other.getEbookChaptert1() == null : this.getEbookChaptert1().equals(other.getEbookChaptert1()))
            && (this.getEbookChaptert2() == null ? other.getEbookChaptert2() == null : this.getEbookChaptert2().equals(other.getEbookChaptert2()))
            && (this.getEbookChaptert3() == null ? other.getEbookChaptert3() == null : this.getEbookChaptert3().equals(other.getEbookChaptert3()))
            && (this.getEbookChaptert4() == null ? other.getEbookChaptert4() == null : this.getEbookChaptert4().equals(other.getEbookChaptert4()))
            && (this.getEbookChaptert5() == null ? other.getEbookChaptert5() == null : this.getEbookChaptert5().equals(other.getEbookChaptert5()))
            && (this.getEbookChaptert6() == null ? other.getEbookChaptert6() == null : this.getEbookChaptert6().equals(other.getEbookChaptert6()))
            && (this.getEbookChaptert7() == null ? other.getEbookChaptert7() == null : this.getEbookChaptert7().equals(other.getEbookChaptert7()))
            && (this.getEbookChaptert8() == null ? other.getEbookChaptert8() == null : this.getEbookChaptert8().equals(other.getEbookChaptert8()))
            && (this.getEbookChaptert9() == null ? other.getEbookChaptert9() == null : this.getEbookChaptert9().equals(other.getEbookChaptert9()))
            && (this.getEbookChaptert10() == null ? other.getEbookChaptert10() == null : this.getEbookChaptert10().equals(other.getEbookChaptert10()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getEbookId() == null) ? 0 : getEbookId().hashCode());
        result = prime * result + ((getEbookChaptert1() == null) ? 0 : getEbookChaptert1().hashCode());
        result = prime * result + ((getEbookChaptert2() == null) ? 0 : getEbookChaptert2().hashCode());
        result = prime * result + ((getEbookChaptert3() == null) ? 0 : getEbookChaptert3().hashCode());
        result = prime * result + ((getEbookChaptert4() == null) ? 0 : getEbookChaptert4().hashCode());
        result = prime * result + ((getEbookChaptert5() == null) ? 0 : getEbookChaptert5().hashCode());
        result = prime * result + ((getEbookChaptert6() == null) ? 0 : getEbookChaptert6().hashCode());
        result = prime * result + ((getEbookChaptert7() == null) ? 0 : getEbookChaptert7().hashCode());
        result = prime * result + ((getEbookChaptert8() == null) ? 0 : getEbookChaptert8().hashCode());
        result = prime * result + ((getEbookChaptert9() == null) ? 0 : getEbookChaptert9().hashCode());
        result = prime * result + ((getEbookChaptert10() == null) ? 0 : getEbookChaptert10().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", ebookId=").append(ebookId);
        sb.append(", ebookChaptert1=").append(ebookChaptert1);
        sb.append(", ebookChaptert2=").append(ebookChaptert2);
        sb.append(", ebookChaptert3=").append(ebookChaptert3);
        sb.append(", ebookChaptert4=").append(ebookChaptert4);
        sb.append(", ebookChaptert5=").append(ebookChaptert5);
        sb.append(", ebookChaptert6=").append(ebookChaptert6);
        sb.append(", ebookChaptert7=").append(ebookChaptert7);
        sb.append(", ebookChaptert8=").append(ebookChaptert8);
        sb.append(", ebookChaptert9=").append(ebookChaptert9);
        sb.append(", ebookChaptert10=").append(ebookChaptert10);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}